import model.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public class TestJAVA {
    public static void main(String[] args) {
//        DBUtil.DeleteDB();
//        SetQuestion();
        SetPerson();
        System.out.println("Hello");
    }

    public static void InitResult(){
        String name = "";
        String scoreStr = "";

    }
    public static void SetPerson(){
        List<Person> persons = new ArrayList<Person>();

        Person p1 = new Person();
        p1.setName("张某人");
        p1.setId(1);

        Person p2 = new Person();
        p2.setName("王某腾");
        p2.setId(2);

        Person p3 = new Person();
        p3.setName("LXX");
        p3.setId(3);

        persons.add(p1);
        persons.add(p2);
        persons.add(p3);

        DBUtil.SetPersons(persons);
    }
    public static void SetQuestion(){
        String options = "";
        options+=("优秀");
        options+=("#合格");
        options+=("#不合格");
//		options.add("不能忍");
        List<Question> questions = new ArrayList<Question>();

        Question question1 = new Question();
        question1.setTitle("政治表现");
        question1.setTitle_en("zhengzhi");
        question1.setOptions(options);

        Question question2 = new Question();
        question2.setTitle("品德修养");
        question2.setTitle_en("pinde");
        question2.setOptions(options);

        Question question3 = new Question();
        question3.setTitle("听话么");
        question3.setTitle_en("tinghua");
        question3.setOptions(options);

        questions.add(question1);
        questions.add(question2);
        questions.add(question3);

        DBUtil.SetQuestions(questions);
    }
}
